package com.zenith.storage.po.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.zenith.common.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 网盘文件夹实体类
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sto_folder")
@Schema(name = "网盘文件夹实体类", description = "网盘文件夹实体类")
public class StorageFolder extends BaseEntity {
    /**
     * 用户ID
     */
    @Schema(description = "用户ID")
    private Long userId;

    /**
     * 父目录ID，0为根目录
     */
    @Schema(description = "父目录ID，0为根目录")
    private Long parentId;

    /**
     * 文件夹名称
     */
    @Schema(description = "文件夹名称")
    private String folderName;

    /**
     * 最长191字符，utf8mb4安全
     */
    @Schema(description = "最长191字符，utf8mb4安全")
    private String fullPath;

    /**
     * 层级深度
     */
    @Schema(description = "层级深度")
    private Integer level;

    /**
     * 排序权重
     */
    @Schema(description = "排序权重")
    private Integer sortOrder;

    /**
     * 状态：1-正常 0-删除
     */
    @Schema(description = "状态：1-正常 0-删除")
    private Integer status;
}